<template>
<uni-shadow-root class="partials-jifen_list-first_jifen_list"><template name="firstJifenList">
  <view class="right_box">
      <block v-if="relateBean.length!=0">
        <view class="detail_list_mode1" style="background:  #eeeeee;">
          <view v-for="(jiFenGoods,index) in (relateBean)" :key="jiFenGoods.index" class="mode1_items" :data-info="jiFenGoods" @click="tolinkUrl" style="border-right: 10px solid #eeeeee;"> 
            <image mode="aspectFill" :src="jiFenGoods.icon"></image>
            <view class="center" :style="'width:'+((1/jsonData.column)*sysWidth-40)+'px;'">{{jiFenGoods.name}}</view>
          <view class="NewBox">
            <text class="ml20">{{jiFenGoods.needJifen}}积分</text>
            <text class="mr20">库存:{{jiFenGoods.count}}</text>
          </view>
        <view class="exchange" :style="'background-color: '+(platformSetting.defaultColor)+';'" @click.stop.prevent="buyGoods" :data-id="index"><text style="color:#fff;">兑换</text></view>
          </view>
        </view>
      </block>
      <block v-if="jiFenGoods.length==0">
        <view class="noproduct">
          <image mode="widthFix" src="https://image1.sansancloud.com/xianhua/2019_12/16/15/54/55_950.jpg?x-oss-process=style/preview_120"></image>
          <text>没有相关商品</text>
        </view>
      </block>
    </view>
</template></uni-shadow-root>
</template>

<script>

global['__wxRoute'] = 'partials/jifen_list/first_jifen_list'

Component({})

export default global['__wxComponents']['partials/jifen_list/first_jifen_list']
</script>
<style platform="mp-weixin">

</style>